#!/usr/bin/python3
# _*_ coding:utf-8 _*_
# __author__ = '__Csm__'


from django.urls import path

from zanhu.articles import views

app_name = "articles"

urlpatterns = [
    path("", views.ArticlesListView.as_view(), name="list"),
    path("write-new-article/", views.ArticleCreatView.as_view(), name="write_new"),
    path("drafts/", views.DraftListView.as_view(), name="drafts"),
    path("<str:slug>/", views.ArticleDetailView.as_view(), name="article"),
    path("edit/<str:pk>/", views.ArticleEditView.as_view(), name="edit_article"),
]
